package com.ruoyi.smile.domain;

import com.ruoyi.common.core.domain.entity.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 动态评论对象 mc_dynamic_comment
 *
 * @author xin
 * @date 2025-03-22
 */
public class McDynamicComment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 被评论作品ID */
    @Excel(name = "被评论作品ID")
    private Long beCommentId;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String content;

    /** 评论图片 */
    @Excel(name = "评论图片")
    private String contentImage;

    /** 评论视频 */
    @Excel(name = "评论视频")
    private String contentVideo;

    /** 根评论ID（指向一级评论的id） */
    @Excel(name = "根评论ID", readConverterExp = "指=向一级评论的id")
    private Long rootId;

    /** 父评论ID */
    @Excel(name = "父评论ID")
    private Long pId;

    /** 评论时父评论昵称 */
    @Excel(name = "评论时父评论昵称")
    private String pNicke;

    /** 评论时所处省份 */
    @Excel(name = "评论时所处省份")
    private String province;

    /** 评论时所处城市 */
    @Excel(name = "评论时所处城市")
    private String city;

    /** 点赞数 */
    @Excel(name = "点赞数")
    private Long likeCount;

    /** 被评论数 */
    private Long beCommentCount;
    private Object userInfo;

    public Object getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(Object userInfo) {
        this.userInfo = userInfo;
    }

    public Long getBeCommentCount() {
        return beCommentCount;
    }

    public void setBeCommentCount(Long beCommentCount) {
        this.beCommentCount = beCommentCount;
    }

    /** 当前用户是否点赞过该动态（0-未点赞,1-点赞） */
    @Excel(name = "当前用户是否点赞过该动态", readConverterExp = "0=-未点赞,1-点赞")
    private String isLike;

    /** 是否置顶（0-未置顶，1-置顶） */
    @Excel(name = "是否置顶", readConverterExp = "0=-未置顶，1-置顶")
    private String isPinned;

    /** 状态（例如：0-正常，1-审核中，2-已下架） */
    @Excel(name = "状态", readConverterExp = "例=如：0-正常，1-审核中，2-已下架")
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setBeCommentId(Long beCommentId)
    {
        this.beCommentId = beCommentId;
    }

    public Long getBeCommentId()
    {
        return beCommentId;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setContentImage(String contentImage)
    {
        this.contentImage = contentImage;
    }

    public String getContentImage()
    {
        return contentImage;
    }
    public void setContentVideo(String contentVideo)
    {
        this.contentVideo = contentVideo;
    }

    public String getContentVideo()
    {
        return contentVideo;
    }
    public void setRootId(Long rootId)
    {
        this.rootId = rootId;
    }

    public Long getRootId()
    {
        return rootId;
    }
    public void setpId(Long pId)
    {
        this.pId = pId;
    }

    public Long getpId()
    {
        return pId;
    }
    public void setpNicke(String pNicke)
    {
        this.pNicke = pNicke;
    }

    public String getpNicke()
    {
        return pNicke;
    }
    public void setProvince(String province)
    {
        this.province = province;
    }

    public String getProvince()
    {
        return province;
    }
    public void setCity(String city)
    {
        this.city = city;
    }

    public String getCity()
    {
        return city;
    }
    public void setLikeCount(Long likeCount)
    {
        this.likeCount = likeCount;
    }

    public Long getLikeCount()
    {
        return likeCount;
    }
    public void setIsLike(String isLike)
    {
        this.isLike = isLike;
    }

    public String getIsLike()
    {
        return isLike;
    }
    public void setIsPinned(String isPinned)
    {
        this.isPinned = isPinned;
    }

    public String getIsPinned()
    {
        return isPinned;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("beCommentId", getBeCommentId())
            .append("content", getContent())
            .append("contentImage", getContentImage())
            .append("contentVideo", getContentVideo())
            .append("rootId", getRootId())
            .append("pId", getpId())
            .append("pNicke", getpNicke())
            .append("province", getProvince())
            .append("city", getCity())
            .append("likeCount", getLikeCount())
            .append("isLike", getIsLike())
            .append("isPinned", getIsPinned())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .toString();
    }

}
